package views;

import java.awt.Dimension;
import java.awt.event.ActionListener;
import java.awt.event.FocusListener;
import java.awt.event.MouseListener;

import javax.swing.JProgressBar;
import javax.swing.JLabel;
import javax.swing.JButton;

import supers.GUIInternalFrame;

@SuppressWarnings("serial")
public class SisUpdGUI extends GUIInternalFrame {
	public JProgressBar pbDownload;
	public JButton btCancelar;
	public JLabel lbStatus;
	
	public SisUpdGUI() {
		setTitle("Baixando Atualiza\u00E7\u00E3o");
		setSize(new Dimension(245, 140));
		
		pbDownload = new JProgressBar();
		pbDownload.setBounds(10, 54, 209, 14);
		pbDownload.setMaximum(100);
		getContentPane().add(pbDownload);
		
		JLabel lblStatus = new JLabel("Status:");
		lblStatus.setBounds(10, 29, 46, 14);
		getContentPane().add(lblStatus);
		
		btCancelar = new JButton("Cancelar");
		btCancelar.setBounds(70, 79, 89, 23);
		getContentPane().add(btCancelar);
		
		lbStatus = new JLabel("Baixando...");
		lbStatus.setBounds(66, 29, 153, 14);
		getContentPane().add(lbStatus);
	}

	@Override
	public void setListener(ActionListener ac, FocusListener fl, MouseListener ml) {
		btCancelar.addActionListener(ac);
	}

	@Override
	public void limpar() {
		btCancelar.setText("Cancelar");
	}

	@Override
	public void setDados(Object obj) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Object getDados() {
		// TODO Auto-generated method stub
		return null;
	}
}
